package com.jason.kotlin.singleton

/**
 *
 * @Author: Jason
 * @Date: 2017/7/23
 * @Time: 20:55
 */

class LazyThreadSafeSynchronized private constructor() {

    companion object {
        private var instance: LazyThreadSafeSynchronized? = null

        @Synchronized
        fun get():LazyThreadSafeSynchronized {
            if(instance == null) instance = LazyThreadSafeSynchronized()
            return instance!!
        }
    }
}